@import "color.less";

html {
  color: #333;
  font-size: 12px;
  // max-width:750px;
  // overflow: hidden;
}

body,
ul,
ol,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
figure,
form,
fieldset,
legend,
input,
textarea,
button,
p,
blockquote,
th,
td,
pre,
xmp {
  margin: 0;
  padding: 0;
}

body,
input,
textarea,
button,
select,
pre,
xmp,
tt,
code,
kbd,
samp {
  line-height: 1.5;
  font-family: tahoma, arial, "Hiragino Sans GB", simsun, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
small,
big,
input,
textarea,
button,
select {
  font-size: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: tahoma, arial, "Hiragino Sans GB", "微软雅黑", simsun, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
b {
  font-weight: normal;
}

address,
cite,
dfn,
em,
i,
optgroup,
var {
  font-style: normal;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  text-align: left;
}

caption,
th {
  text-align: inherit;
}

ul,
ol,
menu {
  list-style: none;
}

fieldset,
img {
  border: 0;
}

img,
object,
input,
textarea,
button,
select {
  vertical-align: middle;
}

article,
aside,
footer,
header,
section,
nav,
figure,
figcaption,
hgroup,
details,
menu {
  display: block;
}

audio,
canvas,
video {
  display: inline-block;
  *display: inline;
  *zoom: 1;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "\0020";
}

textarea {
  overflow: auto;
  resize: vertical;
}

input,
textarea,
button,
select,
a {
  outline: 0 none;
  border: none;

}

a {
  color: inherit !important;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
  padding: 0;
  border: 0;
}

mark {
  background-color: transparent;
}

a,
ins,
s,
u,
del {
  text-decoration: none;
}

sup,
sub {
  vertical-align: baseline;
}

html {
  overflow-x: hidden;
  height: 100%;
  font-size: 50px;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: Arial, "Microsoft Yahei", "Helvetica Neue", Helvetica, sans-serif;
  color: #333;
  font-size: 0.28em;
  line-height: 1;
  -webkit-text-size-adjust: none;
}

hr {
  height: 0.02rem;
  margin: 0.1rem 0;
  border: medium none;
  border-top: 0.02rem solid #cacaca;
}

a {
  color: #25a4bb;
  text-decoration: none;
}

#app {
  font-family: 'Microsoft YaHei', '微软雅黑', Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: left;
  color: #2c3e50;
  // background-color: @grey-color;
  min-height: 100vh;
  line-height: normal;
}

.container { 
  // padding: 30px;
  box-sizing: border-box;
  padding-bottom: 120px!important;
  font-size: 28px;
  // background-color: #fff;
}

.flex {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  justify-content: center;
}

.flex-start {
  -webkit-box-align: start !important;
  -webkit-align-items: flex-start !important;
  -ms-flex-align: flex-start !important;
  justify-content: flex-start !important;
}

.align-items-top {
  align-items: flex-start !important;
}

.align-items-center {
  align-items: center !important;
}

.flex-justify-start {
  justify-content: flex-start;
}

.flex-end {
  -webkit-box-align: end;
  -webkit-align-items: flex-end;
  -ms-flex-align: flex-end;
  justify-content: flex-end;
}

.flex-wrap {
  flex-wrap: wrap;
}

.space-between {
  justify-content: space-between !important;
}

.space-around {
  justify-content: space-around;
}

.flex-colum {
  flex-direction: column;
}

.grey {
  color: @grey-color;
}

.price {
  color: @red-color;
}

// 边框
.border-top {
  border-top: 1px solid @border-grey;
}

.border-bottom {
  border-bottom: 1px solid @border-grey;
}

.border-left {
  border-left: 1px solid @border-grey;
}

.border-right {
  border-right: 1px solid @border-grey;
}

// 最多显示一行
.muti-one {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  flex: 1;
}

// 最多显示二行
.muti-two {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  flex: 1;
}

// 设置顶部navbar
.van-nav-bar {
  // background-color: @primary-color  !important;
  // color: #fff !important;

  .van-icon {
    color: inherit !important;
  }

  .van-nav-bar__title {
    color: inherit !important;
  }
}

// 底部tabBar
.van-tabbar-item {
  .van-tabbar-item__icon {
    img {
      height: 0.58rem;
    }
  }
}

// 底部tabbar
// 公共底部按钮
.footer-box {
  background-color: #ffffff;
  box-shadow: 0 0 10px #ddd;
  left: 0;
  right: 0;
  bottom: 0;
  position: fixed;
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  box-sizing: border-box;
  padding:0 30px;
  
a {
  display: block;
  width: 100%;
}

  // padding-bottom: constant(safe-area-inset-bottom); /*兼容 IOS<11.2*/
  //     padding-bottom: env(safe-area-inset-bottom); /*兼容 IOS>11.2*/

}

.btn {
  line-height: 80px;
  font-size: 34px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: inherit;
  border: none;
  border-radius: 15px;

  &:after {
    display: none;
  }
}

.btn-submit {
  background-color: @primary-color;
  color: #fff;
}

.btn-disabled {
  background: #eee;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(246, 104, 104, 0.5);

  &:after {
    display: none;
  }
}


.btn-save {
  background-color: @primary-color;
  flex: 1;
}
.btn-cancel {
  background-color: #f5f5f5;
  color: #999;
  flex: 1;
}



.emphasis-tip {
  color: #F66868;
}


// 自定义弹框
.dialog-model {
  position: fixed;
  width: 100vw;
  height: 100vh !important;
  top: 0;
  height: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 100;


  &.action-sheeet {
    align-items: flex-end;

    .btn-close {
      width: 48px;
      height: 48px !important;
      position: absolute;
      right: 30px;
    }
  }

  .content-box {
    background: #fff;
    border-radius: 20px;
    width: 80%;
    transition: all 0.1s;



    .dialog-title {
      text-align: center;
      padding: 40px 30px 0 30px;
      color: #333;
      font-size: 32px;
      position: relative;
    }

    .dialog-content {
      padding: 30px 30px 50px 30px;
      text-align: center;
      font-size: 30px;
      color: #666;

      .content {
        margin: 0;

        textarea {
          height: 600px;
        }
      }

      .radio-box {
        .item {
          margin-bottom: 30px;
          padding-right: 30px;
          ;

          &.w100 {
            width: 100%;
          }

          &:last-child {
            margin-bottom: 0;
          }
        }

        text {
          font-size: 28px;
          color: #666;
          padding-left: 15px;
        }
      }

      input {
        text-align: left;
        width: 100%;
        padding: 20px;
        height: auto;
        box-sizing: border-box;
        color: #333;
        background-color: #F4F4F4;
        border-radius: 14px;
        font-size: 30px;
      }
    }

    .btn-box {
      border-top: 1px solid #ddd;

      .btn {
        flex: 1;
        padding: 30px;
        text-align: center;
        font-size: 36px;

        &.btn-cancel {
          color: #999;
          border-right: 1px solid #ddd;

        }

        &.btn-sure {
          color: @primary-color;
          opacity: .5;

          &.btn-sure-active {
            opacity: 1;
          }
        }
      }
    }

    &.action-content-box {
      width: 100%;
      border-top-left-radius: 50px;
      border-top-right-radius: 50px;
      border-bottom-left-radius: 0;
      border-bottom-right-radius: 0;

      .dialog-title {
        .title {

          &:after,
          &:before {
            content: '';
            display: inline-block;
            width: 100px;
            height: 2px;
            background: #ccc;
            margin: 0 10px;



          }
        }
      }

      .btn-box {
        padding: 30px;
        border-top: none;

        .btn {
          padding: 20px 30px;

          &.btn-sure {
            background: @primary-color;
            color: #fff;
            border-radius: 20px;

          }

        }


      }

    }
  }
}

// 多选框
.radios {
  width: 34px;
  height: 34px;
  border: 2px solid #eee;
  background: #eee;
  border-radius: 4px;
  text-align: center;

  &.radios-checked {
    border-color: @primary-color;
    background: @primary-color;
  }

  img {
    width: 38px;
    height: 38px;
    display: block;
    margin-top: -2px;

  }
}

// 加载中
.van-loading {
  padding: 30px 0;

}




.van-loading {
  text-align: center;
}



.van-cell__title__left {
  text-align: left;
}

.van-picker__confirm {
  color: @primary-color  !important;
}




.van-field__control,
.van-radio__label {
  color: #666 !important;
}

.van-textarea {}
.van-skeleton--animate{
  padding:30px 0;
}

.scan-box {
  font-size: 28px;
  text-align: center;
  padding: 100px 0;
  line-height: 1.8;
  img {
    max-width: 40%;
    margin-bottom: 10px;
  }
}
/deep/.van-dialog__message--left{
  line-height: 1.8 !important;
}
// 车牌号输入框
.car-num-box{
  padding: 30px 0;
  
  .input{
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;;
    border: 1px solid #eee;
    border-radius: 5px;
    margin-right: 10px;
    position: relative;
    box-shadow: 0 0 5px#eee;
    &.input-active{
      // border-color: #e83c1a;
      // box-shadow: 2px 2px 5px#e83c1a;
      box-shadow: 0 0 5px#e83c1a;
    }
    &.input-active-blue{
      border-color: #1989fa;
      // box-shadow: 2px 2px 5px#e83c1a;
    }
    &.input-active-green{
      border-color: #4fc08d;
      // box-shadow: 2px 2px 5px#e83c1a;
    }
    &:nth-child(2){
      margin-right: 30px;
      &::after{
        position: absolute;
        left: 120%;
        top: 50%;
        margin-top: -6px;
        content: '';
        width: 12px;
        height: 12px;
        background-color: #eee;
        border-radius: 50%;
        display: inline-block;
        vertical-align: middle;
       
      }

    }
    
  }
}






